Skip to content

Conversation

@edleno2
Copy link
Contributor

@edleno2 edleno2 commented May 4, 2021

Description

  • Replace Debug.WriteLine with Console.WriteLine.

Motivation and Context

How Has This Been Tested?

Tested using the test bench that is linked in the issue.

Built on VS2019 using the test bench. Confirmed that DebugLogger output now shows in the Visual Studio Debug Output window.

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Config and build (change in the configuration and build system, has no impact on code or features)
  • Dependencies (update dependencies and changes associated, has no impact on code or features)
  • Unit Tests (work on Unit Tests, has no impact on code or features)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

edleno2 added 3 commits May 3, 2021 18:42
Signing this assembly so we can give it access to System namespace via nanoFramework.Core.  A later change will replace the Debug.WriteLine to Console.WriteLine so we can build a Production version of the Nuget library but still be able to output to the debugger.

Fix #737

Signed-off-by: Ed Lenoir <[email protected]>
Debug.WriteLine will be no-op'd by the compiler on Release builds, and all Nuget packages are Release builds.  nanoFramework.Core has been changed to allow this library to access protected classes, like System.Console.  Using Console.WriteLine will work on both Release and Debug builds of this library.

Fix #737
@nfbot
Copy link
Member

nfbot commented May 4, 2021

Hi @edleno2,

😞 You have to make up your mind on how this PR addresses the issue. It either fixes, closes or resolves it. Can't have them all...

@nfbot nfbot added the Type: bug Something isn't working label May 4, 2021
Copy link
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josesimoes josesimoes enabled auto-merge (squash) May 4, 2021 17:39
@josesimoes josesimoes merged commit 01e2b92 into nanoframework:develop May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DebugLogger class does not write to Debug window

3 participants